<extend name="Public:base" />
<block name="title"><title>后台管理 | 添加用户</title></block>

<block name="css">
	<!-- BEGIN PAGE LEVEL STYLES -->
	<link rel="stylesheet" type="text/css" href="__CSS__/select2_metro.css" />
	<link rel="stylesheet" type="text/css" href="__CSS__/chosen.css" />
	<!-- END PAGE LEVEL STYLES -->
</block>

<block name="sidebarmenu">
	<li class="start">

		<a href="__APP__">

		<i class="icon-home"></i> 

		<span class="title">管理首页</span>

		</a>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-cogs"></i> 

		<span class="title">系统设置</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="layout_horizontal_sidebar_menu.html">

				数据库设置</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-bookmark-empty"></i> 

		<span class="title">文章管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="{:U('Article/artList')}">

				文章列表</a>

			</li>

			<li >

				<a href="{:U('Article/addArt')}">

				添加文章</a>

			</li>

			<li>

				<a href="{:U('Article/cateList')}">

				分类列表</a>

			</li>

			<li class="">

				<a href="{:U('Article/addCate')}">

				添加分类</a>

			</li>

		</ul>

	</li>

	<li class="active">

		<a href="javascript:;">

		<i class="icon-user"></i> 

		<span class="title">用户管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li class="">

				<a href="{:U('User/userlist')}">

				用户列表</a>

			</li>
			<li>

				<a href="{:U('User/addUser')}">

				添加用户</a>

			</li>

			<li class="active">

				<a href="{:U('User/editPass')}">

				修改密码</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-th"></i> 

		<span class="title">Data Tables</span>

		<span class="selected"></span>

		<span class="arrow open"></span>

		</a>

		<ul class="sub-menu">

			<li class="">

				<a href="table_basic.html">

				Basic Tables</a>

			</li>

		</ul>

	</li>
</block>

<block name="page-title">				
	<h3 class="page-title">
		博客系统 <small>系统概况</small>
	</h3>
	<ul class="breadcrumb">
		<li>
			<i class="icon-home"></i>
			<a href="__APP__">主页</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('User/userlist')}">用户管理</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('User/userlist')}">修改密码</a> 
		</li>
	</ul>
</block>
						
<block name="page-content">
<div class="row-fluid">
	<div class="span12">
		<!-- BEGIN VALIDATION STATES-->
		<div class="portlet box red">
			<div class="portlet-title">
				<div class="caption"><i class="icon-reorder"></i>修改用户密码 ({$Think.session.username})</div>
			</div>

			<div class="portlet-body form">
				<!-- BEGIN FORM-->
				<form action="{:U('doEditPass')}" method="post" id="form_sample_2" class="form-horizontal">
					<div class="alert alert-error hide">
						<button class="close" data-dismiss="alert"></button>
						数据有误，请根据提示修改更正。
					</div>
					<div class="alert alert-success hide">
						<button class="close" data-dismiss="alert"></button>
						Your form validation is successful!
					</div>

					<!--<input type="hidden" name="id" value="<{$userid}>">-->
					<div class="control-group">
						<label class="control-label">原始密码<span class="required">*</span></label>
						<div class="controls">
							<input type="password" name="opassword" data-required="1" class="span6 m-wrap"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">新密码<span class="required">*</span></label>
						<div class="controls">
							<input type="password" name="password" id="user_pass" data-required="1" class="span6 m-wrap"/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">重复新密码<span class="required">*</span></label>
						<div class="controls">
							<input type="password" name="rpassword" data-required="1" class="span6 m-wrap"/>
						</div>
					</div>

					<div class="form-actions">
						<button type="submit" class="btn btn-submit red">提交</button>
						<button type="button" class="btn" onclick="window.history.back(-1);">返回</button>
					</div>

				</form>

				<!-- END FORM-->

			</div>

		</div>

		<!-- END VALIDATION STATES-->

	</div>

</div>

</block> 

<block name="script">
	<!-- BEGIN PAGE LEVEL PLUGINS -->
	<script type="text/javascript" src="__JS__/jquery.validate.min.js"></script>
	<script type="text/javascript" src="__JS__/additional-methods.min.js"></script>
	<script type="text/javascript" src="__JS__/select2.min.js"></script>
	<script type="text/javascript" src="__JS__/chosen.jquery.min.js"></script>
	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<script src="__JS__/app.js"></script>
	<script src="__JS__/form-validation.js"></script>
	<!-- END PAGE LEVEL STYLES -->
	<script>
		jQuery(document).ready(function() {
		   // initiate layout and plugins
		   App.init();
		   FormValidation.init();
		});
	</script>
</block>